#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Módulos


# Constantes


# Clases
# ---------------------------------------------------------------------

class SpawnObject:
	def __init__(self, pos, id, name,image,walkable):
		print pos
		self.pos = pos
		self.id = id
		self.name = name
		self.image = image
		self.visible = True
		self.walkable = walkable
 
	def move(self, dx, dy):
		#move by the given amount
		self.pos[0] += dx
		self.pos[1] += dy
		
	def isvisible(self,inicial, lim_bottom, lim_right):
		if self.visible:
			return inicial[0]<=self.pos[0] and inicial[1]<=self.pos[1] and lim_bottom[0]>=self.pos[0] and lim_right[1]>=self.pos[1]
		else:
			return self.visible
# ---------------------------------------------------------------------

# Funciones
# ---------------------------------------------------------------------



# ---------------------------------------------------------------------

def main():
	pass

if __name__ == '__main__':
	main()
